﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="AdminHome.aspx.vb" Inherits="TWIN_test.AdminHome" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Admin-Home</title>
    <style type="text/css">
        p.navigation-bar 
        {
            float:left; 
            list-style:none;
            padding:0;
            width:800px;
            height: 25px;
        }
        p.navigation-bar a {
            text-decoration:none;
            padding:2px 0;
            width:180px;
            background:#000;
            color:#eee;
            float:left;
            text-align:center;
            border-left:1px solid #fff;
        }
        .style1
        {
            float:right;
            text-decoration: none;
        }  
    </style>
</head>

<body background="../../Images/Training-Administrator-Background.gif">
<center>
    <form id="form1" runat="server">
   <div>
    <center style="width:841px; height:368px; border:1px solid black;background:#FFFFFF; text-align: left;">
    <br />
    Welcome to the TWIN System, Administrator Name! 
    <a href="../../User_Authentication/Login.aspx" class="style1">Logout</a>
    <p style="background:black;" class="navigation-bar">
        <asp:Button ID="manageWorkshopsButton" runat="server" Text="Manage Training Workshops" /><asp:Button ID="manageWorkshopEmployeesButton" runat="server" Text="Manage Training Employees" /> <asp:Button ID="viewProfileButton" runat="server" Text="View Profile" /> 
        <asp:Button ID="createUserButton" runat="server" Text="Create User" 
            Width="115px" />
        </p>

     <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="ID" DataMember="DefaultView" DataSourceID="SqlDataSource1" 
            BackColor="White" BorderColor="White" BorderStyle="None" BorderWidth="5px" 
            CellPadding="2" CellSpacing="2" AllowPaging="True" AllowSorting="True" 
            Height="317px" Width="840px">
        <AlternatingRowStyle BorderColor="Black" BorderStyle="Solid" 
            BorderWidth="2px" />
            
        <Columns>
            <asp:CommandField ShowSelectButton="True" />
            <asp:BoundField DataField="ID" HeaderText="ID" ReadOnly="True" 
                SortExpression="ID" />
            <asp:BoundField DataField="TITLE" HeaderText="TITLE" SortExpression="TITLE" />
            <asp:BoundField DataField="INSTRUCTORID" HeaderText="INSTRUCTORID" 
                SortExpression="INSTRUCTORID" />
            <asp:BoundField DataField="DESCRIPTION" HeaderText="DESCRIPTION" 
                SortExpression="DESCRIPTION" />
            <asp:BoundField DataField="WORKSHOPSTART" HeaderText="WORKSHOPSTART" 
                SortExpression="WORKSHOPSTART" />
            <asp:BoundField DataField="WORKSHOPFINISH" HeaderText="WORKSHOPFINISH" 
                SortExpression="WORKSHOPFINISH" />
            <asp:BoundField DataField="LOCATION" HeaderText="LOCATION" 
                SortExpression="LOCATION" />
        </Columns>
        <RowStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="2px" />
    </asp:GridView>
        <asp:Button style="float:right;" ID="createWorkshopButton" runat="server" Text="Create Workshop" />
    </center>
    
    </div>

     <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString2 %>" 
        ProviderName="<%$ ConnectionStrings:ConnectionString2.ProviderName %>" 
        SelectCommand="SELECT * FROM &quot;WORKSHOP&quot; ORDER BY &quot;ID&quot;"></asp:SqlDataSource>

   
    
    </form>
    </center> 
</body>

</html>
